package com.test.config;

import com.test.pojo.Blue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;

/**
 * @Aurher: QiaoHang
 * @Description:
 * @Data: 2019/9/13 13:20
 * @Modified By:
 */
@Configuration
public class InitDisposConfig {

    @Lazy
    @Scope("prototype")
//    @Scope("singleton")
    @Bean(name = "blue",initMethod = "myInit",destroyMethod = "myDestory")
    public Blue initBean(){
        return new Blue();
    }
}
